Polygon exercise