Added code for the cards