add load and save logic with unittests.