Supervisory exercise. Needs a fix for the maximum and minimum functions.