Credit Card class for Data Structures Homework