how do i template class