solved listToNumber