add n-sided polygon code