ch3: templates