You have a sealed class called Shape. Declare a function called calculateArea(), which takes the sealed class as a parameter and returns the area as a Double.
You can use the following formulas:
Square where a is the side.
Rectangle where w is the width and l is the length.
Circle where r is the radius.
Triangle where b is the base and is the height.
Pentagon where a is the side.