A Functionalist Perspective to the Development of Emotions