new file:   martingale.rb