new Card class for chapter 6 C++ pattern qt book