add user class and template class