hw2 now reads in a file