Learning to manage people's emotions