changed 10.rb to make it faster