Modified base file to complete ProgrammingAssignment2