added start of templating engine