service class with file reader method