implemented a simple TCP echo server.