fixed example.rb