exercise 17
made less verbose and removed unnecessary prompt if target file does not exist
added one-liner version of the script
example function definition and argument passing