Implemented basics of the client-server connection