Implement EchoServer class.