Added exercise 7.rb