     //
     func pageViewController(_ pageViewController: UIPageViewController,
                             viewControllerBefore viewController: UIViewController) -> UIViewController? {
-        return nil
+        print("presentation Before controller called")
+        //return nil
+        return self.page1
     }
     
     func pageViewController(_ pageViewController: UIPageViewController,
                             viewControllerAfter viewController: UIViewController) -> UIViewController? {
-        return nil
+        print("presentation After controller called")
+        return self.page3
     }
     
     func presentationCount(for pageViewController: UIPageViewController) -> Int {
-        return 1
+        print("presentation count called")
+        return 3
     }
     
     func presentationIndex(for pageViewController: UIPageViewController) -> Int {
-        return 2
+        print("presentation Index called")
+        return 1
     }
     //
     // Delegate

    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        

class ReaderPagesController : UIPageViewController, UIPageViewControllerDataSource, UIPageViewControllerDelegate {
    
    private var toolBar: ReaderToolbar!
    private var page1: ReaderViewController!
    private var page2: ReaderViewController!
    private var page3: ReaderViewController!

    init() {
        super.init(transitionStyle: .scroll, navigationOrientation: .horizontal, options: nil)
    }
