Modified the card class