Problem 7 works!

After fixing some pretty idiotic syntactical mistakes, I got an answer for Problem 7 in a little less than 30 seconds. I'm fairly content with this time. Perhaps I can improve it later.