diff --git a/test1.cpp b/test1.cpp
index 7086d4e..12673b2 100644
--- a/test1.cpp
+++ b/test1.cpp
@@ -2,6 +2,21 @@
 #include "./core.h"
 #include "./memory.h"

+void save_framework(FRAMEWORK &fs, const char* filename) {
+
+    ofstream ofs(filename);
+    assert(ofs.good());
+    xml_oarchive oa(ofs);
+    oa << BOOST_SERIALIZATION_NVP(fs);
+}
+
+void restore_framework(FRAMEWORK &fs, const char* filename) {
+    ifstream ifs(filename);
+    assert(ifs.good());
+    xml_iarchive ia(ifs);
+    ia >> BOOST_SERIALIZATION_NVP(fs);
+}
+
 int main(int argc, char *argv[])
 {
     FRAMEWORK fs;