update examples to use ruby 2.0 to_h