ex.rb modified