"Added onto Z's class template with the two homework functions"