starting to use templates for rendering
uses templates for rendering, etc.