Sample and data-handling arrangements in TMPL