edit Card class