added virtual destructor to Packet to free the packet buffer