Slightly more success. Now it fails on test case 7. Nothing left to do; I can't figure out the error.