Separated Packet and PacketTransmitter pseduocode