Demo for template inheritance