submitting answer to ProgrammingAssignment2