Pool template class