Emotion affects learning in children