changed text files to ruby