Basic flow implementation

I forgot to import FINPacket. But I am not sure if Packet is needed or not, because the code refers to Packet.PacketTypes.