A single-class swift solution for CoreData.