Added constructor to create polygon from polyline