Implement a simple server.