Polygon class and demo.