worked on reading in from file