function max (a, b) local m = a if b > a then m = b end return m end