Adding core data framework