Example sending message object between client and server and toString() representation of that object is printed by the server