coding chat application with c