Fix examples.rb

There were errors in some of the foreach loops, this also makes them consistent.
Merge pull request #67 from labcoder/master

Fix examples.rb