worked in Ruby version 1.8.7, too