implement a chat server/client for networks class