CopyPdfFiles.java: wrote loop to copy the files