added main method and polygons