Chapter 3 (Templates in depth)