created classes Connector (inner class Sender & Receiver), Buffer, etc.