Completed Card.java class.