Assignment #20, solution_20.rb, first attempt