Adding reading in a file to the class