implement Card class