createCard method added