added file reader class