The code for the functions declared in Card.hpp