Finished chapter on templates