end of Ch. 9.3 - working with templates