This method gives me the idea that we can create a new type of shape (as rectangle, circle, and polygon) "RegularPolygon" that takes the radius and number of sides. I'll add it as enchantment in issues list.