Edited the template file provided for the class to include answer to homework assignment 2