Class implementation in lua.