Slider class example