-- Chapter 21 example: a simple function that returns a value. local function square(n) return n * n end print(square(5)) -- 25 print(square(7)) -- 49 print(square(3) + 1) -- 10 -- Try-this: add a cube(n) function that returns n*n*n.