Homework: Handling emotions