Actually, when reading how this thread is going, I feel very bad, just because I am the one who pointed you to some class libraries.
Judging from the questions you are asking and the code typos you are making, it seems to me the problem is basic understanding of OOP (objects, classes, etc).
I would highly suggest something: if you feel pretty comfortable right now with tables, try taking a close look at the examples Kikito wrote on MiddleClass's github repository. And take a look at them very closely, in order to understand what is going on. How classes are defined, how objects are defined, what is the real meaning of calling a property/method via a dot vs via a colon, etc. And we can rpovide some help with that. I am pretty sure after that, it will now be much more easier the use any class library, or write your own class framework.
Here you are some additional lectures, feel free to check them out. It will help, tremendously, in my humble opinion.
And please, feel free to ask any questions in case it anything is unclear.