simplified Pool(T) class