creating page template class