polylines and polygons implemented.