problem8.rb