created classes PacketBuffer and ConnectionManager PacketBuffer: (hopefully) threadsafe implementation of a packet buffer for communication between threads ConnectionManager: low-level managment of connection; implementation of multiple threads