Added argument n to the command line to define how many points are used to create the polygon.