Packet class skeleton & some implementation.