NATHAN used "write the code for serializing". But it segfaulted!