Defining the card model