Made createCard() helper method.