polygons and polylines derrive from the same class now