 import UIKit
 
 class GenericSliderView: UISlider, GenericFormElements {
+    let textWidth: CGFloat = 50;
+    let textHeight: CGFloat = 50;
+    
+    let max: Float;
+    let min: Float;
     let stepSize: Float;
+    
+    var actualValue: Int;
+    
+    let valueLabel = UILabel();
     
     init(data: [String]) {
         let min = Float(data[0]);

            fatalError("3 and only 3 float values must be passed to the GenericSliderView");
        }
        
        stepSize = tempStepSize!;
        
        super.init(frame: CGRect());
        
        super.minimumValue = 0;
        super.maximumValue = max! / stepSize;
        
        super.continuous = true;
        super.addTarget(self, action: "updateSliderValue:", forControlEvents: UIControlEvents.ValueChanged);

    }
    
    func updateSliderValue(sender: UISlider) {
        actualValue = Int((super.value + min) * stepSize);
        valueLabel.text = String(actualValue);
    }
    
    func getResults() -> String {
        return String((super.value + min) * stepSize);
    }
    
    /*
