Closer to working.
Tabs to spaces.
Passes first test, with some hacks.