Gratitude and optimism are ingredients for a great life