added template class for packages