add persistence to tutorial 7 and 8