Completed ProgrammingAssignment2