We could expose an API, for example, `register_class` to register a custom class in the global object.