Got solution for problem 8 working, but it's not giving the right answer. I think it's a logic error.