What are the roles and duties of each rank?