Added a ruby version of the script.