Implemented client/server connection

Sending an object through the network is not working yet.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>