Implemented a basic echo server