added class to represent a card