I have Integrated everything I needed into the  "learn functions example" file

Now I only need to add some comments and make this into a .js file
accessable from a html file
Moved the script from "learn functions example" into the .js file

Everything is working great. I just need to add some comments now.
Remembered there must be two prompts for information

setting up second prompt now
fixed typo