changed constructor in Card class