im sorry that i am too lazy to tell you the whole thing, but you can use metatables (i hate metatables) to accomplish your goal. metatables are essentially special tables that define custom behaviors for other tables by using metamethods, allowing for operations like custom indexing, arithmetic, and method overriding