Added ex8.rb