created Card class