Corrects the function definitions after reading more of the lab specification