example of template inheritance