Over simplified solution to calculate area for triangle, rectange, or circle from one function