ruby script working