Implemeneted the Client side and bug tested