The serialize() function is written, but I still need to write its
recursive helper method. So right now it doesn't actually do anything.