example: add example3, which can save and restore session