> function graph:new(o) > o = o or {} > setmetatable(o,self) > self._index = self > return o > end Note that __index should have two underscores. Yours has only one. HTH, Alexander.