implemented Polygon class