my ProgrammingAssignment2 version 1.0