Lua, how to create object instance

Hello, I still haven’t figured out how to create an instance of an object in a LUA script, for example Location, at the moment I’m creating these variables for myself using the following code “local location = ahrs:get_position()”, but I would like it to look like this “local location = new Location”

I figured it out :grinning:, it was worth doing a couple of experiments.
You can create an instance of a “class” using the following construction

local my Location = Location()

But I would still like to know where these structures are prescribed, I know that somewhere on github, but I could not find