Computer modeling of emotion