exercise 7.rb