Implement a chat program using TCP sockets capable of doing some actions