added an example for midpoint