Completing ProgrammingAssignment2