neural network classes in Lua