Add persistence example

first commit for persistence example