7th problem in ruby
starting problem 8 in Ruby
finished problem 8 in ruby