Mechanics of Happiness