Added template engine and the class file