modified program.rb