From tutorial http://www.raywenderlich.com/85578/first-core-data-app-using-swift