A Genetic Approach to Behavioral Plasticity and Rigidity