Updated from Perl version to Ruby version