added base version of client.c