comments and corrections on examples.rb