adding sample client server code