learning use of templates