How to use a template