Displays shapes depending on number of sides listed