ruby-project-5.rb update (rescue fixed)