How do I create a template and what is it used for?