new method to sum the digits