change func delete(object: NSManagedObject?) to func delete(#object: NSManagedObject?) for Driver