Implemented scrolling with a new class