Create response classes and a handler interface.