Text this: An iterative method based on the average quadrature formula