added supporting of createCard() method