Read again Chapter 2 of Machine learning with Core ML book. Which ended up with bug fix.

Read Identifying objects in Swift. It’s about Equatable, ===, Hashable and … ObjectIdentifier. Have never head of ObjectIdentifier!!!

Read Code encapsulation in Swift.