Moved Card class to common lib