         CGContextMoveToPoint(context, fromPoint.x, fromPoint.y)
         CGContextAddLineToPoint(context, toPoint.x, toPoint.y)
 
-        let bar = [toPoint.x, toPoint.y]
-        print(bar)
-        foo += bar
-        print(foo)
-        
+        let coordinate: Array<CGFloat> = [toPoint.x, toPoint.y]
+        lineCoordinates.append(coordinate)
+        print(lineCoordinates)
+
         CGContextSetLineCap(context, CGLineCap.Round)
         CGContextSetLineWidth(context, brushWidth)
         CGContextSetRGBStrokeColor(context, 0, 0, 0, 1.0)

        UIGraphicsEndImageContext()
        
        tempImageView.image = nil
    }
}

    var opacity: CGFloat = 1.0
    var swiped = false

    var lineCoordinates: Array<Array<CGFloat>> = []

    let colors: [(CGFloat, CGFloat, CGFloat)] = [
        (0, 0, 0),
        (105.0 / 255.0, 105.0 / 255.0, 105.0 / 255.0),
