Core Data sample. Insert and select operation