file reader class implemented and passing unit test