sumOfDigits added