This is version 1 of the cards.c