Adding template class.