Learning to be happier