A prescription for happiness