added a class to template