         for i in 0 ..< arr.count {
             if (i < arr.count - 1) {
                 var start = arr[i]
-                start.x = diameter / 2
+                start.x += diameter / 2
                 start.y += diameter
                 
                 var end = arr[i + 1]

        
        let shapeLayer = CAShapeLayer()
        shapeLayer.path = path.CGPath
        shapeLayer.strokeColor = UIColor.whiteColor().CGColor
        shapeLayer.fillColor = color.CGColor
        shapeLayer.lineWidth = lineWidth
        
        self.layer.addSublayer(shapeLayer)
    }
}


class ISTimeline: UIView {

    let diameter:CGFloat = 6.0
    let lineWidth:CGFloat = 2.0
    let lineColor = UIColor.lightGrayColor()
    
    let bubbleColor = UIColor.lightGrayColor()
    let bubbleRadius:CGFloat = 2.0
    let textColor = UIColor.whiteColor()
    
    var points = ["start", "point", "end"]
    
    let margin:CGFloat = 30
    
    override func drawRect(rect: CGRect) {
        let ctx: CGContextRef = UIGraphicsGetCurrentContext()!
