Adding header and implementation for a card class