Implemented the echo client.