add service template class