Implemented a simple echo server