added getCardDetails() method