How do I complete this example?

Hello I’m trying an example and I don’t know how to follow. I’m trying to set a map (or some other structure) that saves all the same class/type together. For that, my approach was to take all …