What are the components of the mind and what is the function of it?