getCard() implemented and tested