Implement the echo server