# Same class many names **🟢 Beginner · Lesson 24** One class, one spell - a spell_id is the SHA256 of the class's code, so the SAME class registers once, whatever binding name or lifecycle you give it (beginner 30). The working pattern for one shape in many roles: tiny subclasses, one per role - each is a new class, so its own spell, at its own address. (Same-NAMED classes with different code may also coexist at different addresses since 0.2.8206; the contract probes pin both rules.) ## Before you run Use the [Beginner guide](../../beginner/index.md) for prerequisite concepts. Run from a checkout with Melder installed and Python 3.14 free-threading selected. The collection download includes the level's local helper modules. ## Run the saved script ```bash python UX_and_AIX_experiences/01_beginner/24_same_class_many_names.py ``` ```powershell py -3.14t UX_and_AIX_experiences/01_beginner/24_same_class_many_names.py ``` {download}`Download this collection <../../downloads/beginner-examples.zip>` · [Source on GitHub](https://github.com/Synaptic724/melder/blob/90d52e0a12cb0743d62568d5a19ce954a54443bc/UX_and_AIX_experiences/01_beginner/24_same_class_many_names.py) ## Public surface subclass-per-role registration, mixed lifecycles ## Code ```{literalinclude} ../../downloads/01_beginner/24_same_class_many_names.py :language: python :linenos: ``` ## Check the outcome The script contains its own assertions or demonstrated refusal paths. Run it to evaluate those checks against your installed version. The code above is taken directly from the saved file; no run output is invented here. [More beginner examples](index.md) · [Level guide](../../beginner/index.md) ## Related guides - [The address law](../../beginner/addresses.md)