Nearly finished first simple example code generation.