implemented plotting polygons;