Added template inherance (Chapter 9)