Server Code Added

Server code added and extra client code has be added to client side