     var promptLabel: UILabel!
     var nameField: UIFloatingPromptTextField!
     var weightField: UIFloatingPromptTextField!
+    var isBackspace = false
     
     private lazy var plusLayer = CAShapeLayer()
     private lazy var buttonGesture = UITapGestureRecognizer()

        weightField.returnKeyType = .done
        weightField.isHidden = true
        weightField.delegate = self
        weightField.keyboardType = .decimalPad
        
        // Add an input accessory view which will display done

        return true
    }
    
    // Append a "%" sign to the end of the string in the textfield
    func weightFieldTextChanged(textField: UITextField) {
        
        guard var text = textField.text, text != "" else {
            return
        }
        
        // Replace all % and treat string as if the % doesnt matter
        text = text.replacingOccurrences(of: "%", with: "")
        // If it's a back space then remove that string and set the field
        if isBackspace {
            text = text.substring(to: text.index(before: text.endIndex))
        }
        
        // If after deleting the text = "" then just set textfield text to empty, and return 
        // We dont want to append just % because that would look weird, so return and dont append
        if text == "" {
            textField.text = nil
            return
        }
        
        // All statements passed, lets set the textfields text
        textField.text = text.appending("%")
        
    }
    
    override func layoutSubviews() {
        // Remove these views and redraw them
        nameField.removeFromSuperview()
