convert examples to readers and writers