added 1D example