creating ExampleGenerator for documentation