finished code example in section6, chapter9, MoveAndCopyFiles.java