Added client code and server code