Example done before using ViewPager.