Here's my solution: http://www.io.com/~jimm/rubyquiz/quiz14/

Jim
-- 
Jim Menard, jimm / io.com, http://www.io.com/~jimm/
"If at first you don't succeed, don't go skydiving." -- Unknown