Hierarchy templates working