Adding methods to work with polygons.