finished ex25.rb