Finished Server, writing client