Create sum_digit method