Reprogrammed pooling of objects to use the same class