codegeneration sample