ex5/6.rb