Added method to add polygons