How kindness and wisdom lead to happiness