Made and tested the card class.