added the ViewPagerAdapt class.