Extrema added for demonstration