for sample.rb