Adds sumDigits function
Implements CC validation