Modified Card class. Added attributes and methods.