edits to Polygon2D --David Caratelli