added core data and models