Templating working with sample model