Adding Template inheritance