Incorporating Emotions and Memories into AI Functions