codegen examples