ADD: first implementation of the readerWriterGenerator