Click the green flag and follow the instructions from Scratch the Cat.
Added variables to the size and sides of the polygon so the user can change the shape on the fly.