Inheritance between Templates