Template engine

Added template engine