adding method trapezoid