updated example.lua