Import/Export functions

I don't know if this is how it's supposed to be done, but here's what
I've wrote so far.