Using CoreData framework to build a diary app (Treehouse)