Update balanced.rb