adjusted Card class for attr_reader