Added new TemplateEngine class.