lab2 template, unmodified
toDigits, lots of bananas though
toDigitsRev ??