Improved ruby.rb