Changed ruby 1.8 style to 1.9 style