function fact(n) return n > 0 and n * fact(n-1) or 1 end