Fleshed out Polygon class.