adding to card class