Completed CreditCardValidator exercise.