create new templates and add template inheritance