making a polygon class