add example.rb file for ruby chapter