What are the functions and roles of a manager