Update: area works for triangles
Update: Addted tests for trapezoid and pentagon.
Update: Added tests for trapezoid and pentagon.