integrating ruby script

script was accepted