Code for templates example