CoreData manipulation from a tutorial by Jameson Quave