Creating a template - C#