Added server.c and client.c to implement server and client sides