Organized ruby script