added createHull method