A Pragmatic Approach to Implementation of Emotional Intelligence in Machines