modified doughnut.rb