A simple demo of Core Data in Swift. Credit to rm2kdev.