Modified bar.rb