That was a brilliant idea, thank you so much! It is really a break through!
The only thing that I am a bit unsure about it is if the number of element types and relevant quantities change then it might not work as perfect as it does in this example.
For instance if we have 4 types of elements and just one instance from one of the types while the other types quantities are more than one.
I do appreciate your time and help once again.