first commit for clinet.c, incomplete code