added core data helper classes for swift