Additions to code generation.
Class generation for all examples.