 import Foundation
 import UIKit
 
-class SimplePageViewController : UIPageViewController {
+final class SimplePageViewController: UIPageViewController {
     
-    var customViewControllers : Array<UIViewController>
+    var customViewControllers: Array<UIViewController>
     
-    /// Allows the page vew controlller to manage a page control
-    var pageControl : UIPageControl?
+    /// Allows the page view controlller to manage a page control
+    var pageControl: UIPageControl?
     
     /**
      Initalises a new UIPageViewController and sets the view controllers passsed as a 

     
     - parameter viewControllers: The view controllers included in the UIPageViewController
     */
    init (withViewControllers viewControllers : Array<UIViewController>) {

        // Initalise the properties
        self.customViewControllers = viewControllers

    }    
}

extension SimplePageViewController: UIPageViewControllerDataSource {
    
    func pageViewController(pageViewController: UIPageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController? {
        
        var nextViewController: UIViewController?
        
        if let index = customViewControllers.indexOf(viewController) {
            pageControl?.currentPage = index
