My solution is at http://users.adelphia.net/~showaltb/rubyquiz/63/fold.rb, made without peeking at other solutions. I only did the first extra credit. The extra extra credit looks hard!