Created a PacketHelper class to encapsulate and packet related code