added ex17.rb