trying to implement example.lua