added another way to calculate an area given a triangle object