Updated with two other calculators, need to finish triangle.  Redid controller to allow for multiple types.