Done: replace server.c and client.c with eric's files