added new class to do trackball

new trackball class