A tutorial on how to use CoreData with swift