                         let d2 = p2.deltaTo(p1).length()
                         let d3 = p3.deltaTo(p2).length()
 
-                        var b1 = p2.multiplyBy(pow(d1, 2 * alpha))
-                        b1 = b1.deltaTo(p0.multiplyBy(pow(d2, 2 * alpha)))
-                        b1 = b1.addTo(p1.multiplyBy(2 * pow(d1, 2 * alpha) + 3 * pow(d1, alpha) * pow(d2, alpha) + pow(d2, 2 * alpha)))
-                        b1 = b1.multiplyBy(1.0 / (3 * pow(d1, alpha) * (pow(d1, alpha) + pow(d2, alpha))))
-
-                        var b2 = p1.multiplyBy(pow(d3, 2 * alpha))
-                        b2 = b2.deltaTo(p3.multiplyBy(pow(d2, 2 * alpha)))
-                        b2 = b2.addTo(p2.multiplyBy(2 * pow(d3, 2 * alpha) + 3 * pow(d3, alpha) * pow(d2, alpha) + pow(d2, 2 * alpha)))
-                        b2 = b2.multiplyBy(1.0 / (3 * pow(d3, alpha) * (pow(d3, alpha) + pow(d2, alpha))))
+                        var b1 = p2.multiplyBy(pow(d1, 2 * self.catmullAlpha))
+                        b1 = b1.deltaTo(p0.multiplyBy(pow(d2, 2 * self.catmullAlpha)))
+                        b1 = b1.addTo(p1.multiplyBy(2 * pow(d1, 2 * self.catmullAlpha) + 3 * pow(d1, self.catmullAlpha) * pow(d2, self.catmullAlpha) + pow(d2, 2 * self.catmullAlpha)))
+                        b1 = b1.multiplyBy(1.0 / (3 * pow(d1, self.catmullAlpha) * (pow(d1, self.catmullAlpha) + pow(d2, self.catmullAlpha))))
+
+                        var b2 = p1.multiplyBy(pow(d3, 2 * self.catmullAlpha))
+                        b2 = b2.deltaTo(p3.multiplyBy(pow(d2, 2 * self.catmullAlpha)))
+                        b2 = b2.addTo(p2.multiplyBy(2 * pow(d3, 2 * self.catmullAlpha) + 3 * pow(d3, self.catmullAlpha) * pow(d2, self.catmullAlpha) + pow(d2, 2 * self.catmullAlpha)))
+                        b2 = b2.multiplyBy(1.0 / (3 * pow(d3, self.catmullAlpha) * (pow(d3, self.catmullAlpha) + pow(d2, self.catmullAlpha))))
 
                         if i == startIndex {
                             graphPath.moveToPoint(p0)

    private let bottomBorder:CGFloat = 40
    private let graphBorder:CGFloat = 30
    private let statsColor:UIColor = .redColor()

    // MARK: - Init
    override init (frame : CGRect) {
        super.init(frame : frame)

        }
    }

    internal func setUpGraphView(statisticsItems:Array<Double>, intersectDistance:Int, catmullRom:Bool, catmullAlpha:CGFloat = 0.30) {
        if statisticsItems.count <= 1 {
            self.objects = [0.0, 0.0]
            self.intersectDistance = 1
