sample.rb file modified