This is an example on how to use core data in ios