Here's the solution.

If you can install, run it for me, and explain the code you're done.

Don't steal your own hat, though:

Overall this assignment is very clear cut.