card_invalid class started to implement