My program from ProgrammingAssignment2