adding template classed