Here I have defined a procedure 'polygon' that allows you to create any regular shape. You have to write in the numbers for the length of side, angle and number of sides.