Complete ruby script