Added a template for doing code generation