Started and Nearly Finished Problem 8

I started and nearly finished problem 8.  I say nearly because the
website says I keep getting the problem wrong, even though the program
works. Will update when I find a fix.
-Isaac