Fixed the code to properly make the card structure.