Extract examples

Extracting all generator code for examples into their own generators.