added core data framework and models