chapter11: template