Implements doubleSecond and sumDigits