exercise 4: dec2int using foldl
exercise 6: curry and uncurry
up through exercise 3