Modelling Machine Emotions for Realizing Intelligence