Trapezoid caclualtor added.