The list method now writes the name of each file it finds on a new line.