This is a very early Ruby program (not really my first), written circa 2001 for Ruby 1.6!