added 2D example