Sample project how to use with core data in iOS