CPP class for work with lua scripts