Implemented basic logic for scroller component