Finalize the ProgrammingAssignment2