Create a template class.