changed example to be generic templating