A 3-Layered Emotion-Based Architecture for a Social Robot