Working example of client server interaction