Create clientcode

the code for client