created a card class