diff --git a/python_jsonschema_objects/examples/README.md b/python_jsonschema_objects/examples/README.md
index 2136079..700c7b6 100644
--- a/python_jsonschema_objects/examples/README.md
+++ b/python_jsonschema_objects/examples/README.md
@@ -174,6 +174,60 @@ schemas are unique.
 }
 ```
 
+## Generating Multiple Top Level Objects
+
+Sometimes what you really want to do is define a couple
+of different objects in a schema, and then be able to use
+them flexibly.
+
+Any object built as a reference can be obtained from the top
+level namespace. Thus, to obtain multiple top level classes,
+define them separately in a definitions structure, then simply
+make the top level schema refer to each of them as a `oneOf`.
+
+The schema and code example below show how this works.
+
+``` schema
+{
+    "title": "MultipleObjects",
+    "id": "foo",
+    "type": "object",
+    "oneOf":[
+            {"$ref": "#/definitions/ErrorResponse"},
+            {"$ref": "#/definitions/VersionGetResponse"}
+            ],
+    "definitions": {
+        "ErrorResponse": {
+            "title": "Error Response",
+            "id": "Error Response",
+            "type": "object",
+            "properties": {
+                "message": {"type": "string"},
+                "status": {"type": "integer"}
+            },
+            "required": ["message", "status"]
+        },
+        "VersionGetResponse": {
+            "title": "Version Get Response",
+            "type": "object",
+            "properties": {
+                "local": {"type": "boolean"},
+                "version": {"type": "string"}
+            },
+            "required": ["version"]
+        }
+    }
+}
+```
+
+``` python
+>>> builder = pjs.ObjectBuilder('multiple_objects.json')
+>>> classes = builder.build_classes()
+>>> print(dir(classes))
+[u'ErrorResponse', 'Local', 'Message', u'Multipleobjects',
+'Status', 'Version', u'VersionGetResponse']
+```
+
 ## Installation
 
     pip install python_jsonschema_objects

Request: example for multiple top-level objects in a schema
The readme suggests that multiple objects can be extracted from a schema by `ObjectBuilder.build_classes`, however it's really not clear to me how one can define multiple objects within a single schema in a way where this would work. Can you please give an example of how you see this working?

For example, given a schema that (somehow) contains the definition of two top-level objects, the expectation might be that the result of `ObjectBuilder(schema).build_classes()` is a namespace with classes for both objects. Does this require combination of schemas with the `anyOf` directive?

Or is the intention that there would be a separate schema for each object, and therefore `ObjectBuilder(schema).build_classes()` would need to be called within a loop over all schemas?

Example:

```
schema = {
    "id": "My Schema",
    "properties": {
        "ErrorResponse": {
            "title": "Error Response",
            "type": "object",
            "properties": {
                "message": {"type": "string"},
                "status": {"type": "integer"},
            },
            "required": ["message", "status"],
        },
        "VersionGetResponse": {
            "title": "Version Get Response",
            "type": "object",
            "properties": {
                "local": {"type": "boolean"},
                "version": {"type": "string"},
            },
            "required": ["version"],
        }
    }
}

print(dir(pjs.ObjectBuilder(schema).build_classes()))
# Out: ['ErrorResponse<anonymous>', 'Local', 'Message', 'Status', 'MySchema', 'Version', 'VersionGetResponse<anonymous>']
```
In this case, the two useful classes have `<anonymous>` suffixes which makes them difficult (but not impossible) to use.
diff --git a/test/test_pytest.py b/test/test_pytest.py
index 867b63f..4e52b6f 100644
--- a/test/test_pytest.py
+++ b/test/test_pytest.py
@@ -64,9 +64,8 @@ def test_build_classes_is_idempotent():
         }
     }
     builder = pjs.ObjectBuilder(schema)
+    x = builder.build_classes()
     builder.build_classes()
-    builder.build_classes()
-
 
 
 def test_underscore_properties():
diff --git a/test/test_regression_87.py b/test/test_regression_87.py
new file mode 100644
index 0000000..523b62f
--- /dev/null
+++ b/test/test_regression_87.py
@@ -0,0 +1,15 @@
+import pytest
+
+import python_jsonschema_objects as pjs
+
+
+def test_multiple_objects_are_defined(markdown_examples):
+    builder = pjs.ObjectBuilder(
+        markdown_examples['MultipleObjects'],
+        resolved=markdown_examples)
+
+    assert builder
+    classes = builder.build_classes()
+    assert 'ErrorResponse' in classes
+    assert 'VersionGetResponse' in classes
+    print(dir(classes))

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.5
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
certifi==2021.5.30
coverage==6.2
execnet==1.9.0
importlib-metadata==4.8.3
inflection==0.2.0
iniconfig==1.1.1
jsonschema==2.6.0
Markdown==2.4
packaging==21.3
pandocfilters==1.5.1
pluggy==1.0.0
py==1.11.0
pyparsing==3.1.4
pyrsistent==0.18.0
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-mock==3.6.1
pytest-xdist==3.0.2
-e git+https://github.com/cwacek/python-jsonschema-objects.git@7da07c489b698fe1df72ee219e5fd52cd37dbbb1#egg=python_jsonschema_objects
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
zipp==3.6.0

name: python-jsonschema-objects
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - coverage==6.2
      - execnet==1.9.0
      - importlib-metadata==4.8.3
      - inflection==0.2.0
      - iniconfig==1.1.1
      - jsonschema==2.6.0
      - markdown==2.4
      - packaging==21.3
      - pandocfilters==1.5.1
      - pluggy==1.0.0
      - py==1.11.0
      - pyparsing==3.1.4
      - pyrsistent==0.18.0
      - pytest==7.0.1
      - pytest-asyncio==0.16.0
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytest-xdist==3.0.2
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - zipp==3.6.0
prefix: /opt/conda/envs/python-jsonschema-objects

test/test_regression_87.py::test_multiple_objects_are_defined
test/test_pytest.py::test_schema_validation test/test_pytest.py::test_regression_9 test/test_pytest.py::test_build_classes_is_idempotent test/test_pytest.py::test_underscore_properties test/test_pytest.py::test_array_regressions test/test_pytest.py::test_arrays_can_have_reffed_items_of_mixed_type test/test_pytest.py::test_regression_39 test/test_pytest.py::test_loads_markdown_schema_extraction test/test_pytest.py::test_object_builder_loads_memory_references test/test_pytest.py::test_object_builder_reads_all_definitions test/test_pytest.py::test_oneOf_validates_against_any_valid[{"MyData": test/test_pytest.py::test_oneOf_fails_against_non_matching test/test_pytest.py::test_oneOfBare_validates_against_any_valid[{"MyAddress": test/test_pytest.py::test_oneOfBare_validates_against_any_valid[{"firstName": test/test_pytest.py::test_oneOfBare_fails_against_non_matching test/test_pytest.py::test_additional_props_allowed_by_default test/test_pytest.py::test_additional_props_permitted_explicitly test/test_pytest.py::test_still_raises_when_accessing_undefined_attrs test/test_pytest.py::test_permits_deletion_of_additional_properties test/test_pytest.py::test_additional_props_disallowed_explicitly test/test_pytest.py::test_objects_can_be_empty test/test_pytest.py::test_object_equality_should_compare_data test/test_pytest.py::test_object_allows_attributes_in_oncstructor test/test_pytest.py::test_object_validates_on_json_decode test/test_pytest.py::test_object_validates_enumerations test/test_pytest.py::test_validation_of_mixed_type_enums test/test_pytest.py::test_objects_allow_non_required_attrs_to_be_missing test/test_pytest.py::test_objects_require_required_attrs_on_validate test/test_pytest.py::test_attribute_access_via_dict test/test_pytest.py::test_attribute_set_via_dict test/test_pytest.py::test_numeric_attribute_validation test/test_pytest.py::test_objects_validate_prior_to_serializing test/test_pytest.py::test_serializing_removes_null_objects test/test_pytest.py::test_lists_get_serialized_correctly test/test_pytest.py::test_dictionary_transformation[pdict0] test/test_pytest.py::test_dictionary_transformation[pdict1] test/test_pytest.py::test_strict_mode test/test_pytest.py::test_boolean_in_child_object
python_jsonschema_objects/examples/README.md
python_jsonschema_objects/examples/README.md