Pushed file reading onto a different class