createCard method