My implementation of the card class