How are adaptation related to inheritance?