Templates inheritance