Added solution_8.rb