Adding a typed TemplateBase