add core data model and magical record