Created main function and Polygon classes