Whoo boy, that was less like writing a solution and more like writing a bunch of tools to get to the end.