defined Card class