Optimize examples and make them look more rubyish