Added a sample for template inheritance