Introduce template inheritance