Implement and test naive serialization - no error handling.