Code for supervisors chapter