Add methods to get digits from a number and a number from a list of
digits.