code for producing shapes, cards, and limits