adding the digits of a given number