Made the Polygon2 class and Polygon3 class instantiable