What I know is to make a class like that:
A = { x = 0, y = 0, } setmetatable(A, { __call = function(self, instance)