Refactored 'Card' class