created example lua script. can be used as starting point.