Added new methods to the card class