Implemented the search of files through a visitor pattern