Adding recursive method to get text files