ruby-project-10.rb updated, errors fixed