added persistence
Merge pull request #1 from ddewaele/dev_part2_persistence

added persistence