Update example.rb

increment attempts