function Registry.new(p)local g={class=p;objects={}}setmetatable(g,{__index=Registry})return g end

function Registry.new(class)
	local self = {
		class = class,
		objects = {}
	}
	setmetatable(self, {__index = Registry})

	return self
end
