Add saveTo and loadFrom methods