Now we need to create the different shape classes. We'll start with a Rectangle class which will inherit Polygon.
Rectangle
Polygon
Make sure to type Rectangle(Polygon).
Rectangle(Polygon)