added setRange example