Stateful classes for Lua