Trying to get to grips with OOP in Lua