Solved ProgrammingAssignment2