chat program for GUI and SOCKET practice