With the introduction of the function type() it is now possible to know the type of the variable.
So I tried to find a way to implement a simple class system and I think I found a way
First we need a function to copy tables
function copy(o)
local c