Create function polygonArea

Create function polygonArea with variable area and return area inside
with comments