Added an example for template inheritance