starter code for core data