Understanding the Science of Habits