started working on template engine