Added more methods to the card class