Finished chapter 3 on templates