Starting to build the import and export

I find recursion very hard to reason about, even after a few bottles of
wine.