Habit formation and the theory of addiction