Learning network programming through making simple chat client