     @IBOutlet weak var balanceTextField: UITextField!
     @IBOutlet weak var pictureImageView: UIImageView!
     @IBOutlet weak var balanceIndicatorButton: UIButton!
+    let balancePattern = "^[0-9]+\\.?[0-9]{0,2}$"
     var balanceIndicator: BalanceIndicator = .Neutral
     var participant: Participant?
+    var lastAcceptedBalance: String = "00.00"
     
     func configureWithParticipant(passedParticipant: Participant) {
         participant = passedParticipant

    
    @IBAction func balanceChanged(sender: UITextField) {
        if let cellText = balanceTextField.text, let newBalance = Double(cellText), participant = participant {
            if newBalance != participant.debt.doubleValue {
                if balanceIndicator == .Negative {
                    participant.debt = -newBalance
                } else {
                    participant.debt = newBalance
                }
                setCellSettingsWithBalance(participant.debt.doubleValue)
            }
        }
    }

            balanceIndicator = .Neutral
        }
    }

}
