         // Flip the y axis
         transform = transform.scaledBy(x: 1, y: -1)
         transform = transform.translatedBy(x: 0, y: -bounds.size.height)
-
+        
         return transform
     }
     
-    static let xColor = UIColor.multiplierInputColor()
-    static let yColor = UIColor.adderInputColor()
-    
     override func draw(_ rect: CGRect) {
-        // Draw a grid in the background
         let mainColor = UIColor.exponentBaseColor();
         let backgroundColor = mainColor.withAlphaComponent(0.1).cgColor
         let minorAxisColor = mainColor.withAlphaComponent(0.2).cgColor
         let majorAxisColor = mainColor.cgColor
-        let functionLineColor = GraphToy.yColor.cgColor
         let majorAxisWidth: CGFloat = 2
         let minorAxisWidth: CGFloat = 1
-        let functionLineWidth: CGFloat = 4
-        let selectedPointRadius: CGFloat = 7
         
         let context = UIGraphicsGetCurrentContext()!
         func stroke(path: CGMutablePath, width: CGFloat, color: CGColor) {

    let xConnector: Connector
    let yConnector: Connector
    
    init(xConnector: Connector, yConnector: Connector) {
        self.xConnector = xConnector
        self.yConnector = yConnector
        
        super.init(frame: CGRect.zero)
    }
    
    required init(coder aDecoder: NSCoder) {

        let drawingToGraphing = transformFromDrawingToGraphing()
        let graphingToDrawing = drawingToGraphing.inverted()
        
        let topLeft = CGPoint.zero.applying(drawingToGraphing)
        let maxX = self.bounds.maxX
        let maxY = self.bounds.maxY
