creating a template to generate code