Create average.lua