add Core Data functionality