How to create and manage core data objects