Simple 1D example
Complex 1D example
Simple 2D example