extracted reader/writer-method-class to a separate file.