create socket passed
echos written but not tested
client and server working
made into classes and keep server open to receive multiple messages