Integrating Core Data instead of saving into a file