2d example templating