Dynamically creating the cards from an array.