added solution to the file cleaning problem