Packet struct change to class