adding Template class; feature: addPageTemplate