Implemented basic server.