fun power (n:int) x=if x = 0 then 1 else n * power n (x-1);