Neuroscientists have discovered that the brain uses a dual system for learning through trial and error. This is the first time a second learning system has been identified, which could help explain how habits are formed and provide a scientific basis for new strategies to address conditions related to habitual learning, such as addictions and compulsions. The study in mice could also have implications for developing therapeutics for Parkinson's.