Ken, thanks for your ideas, but everytime i make a new entity, i would need to manually say
e3.entity=new entity
e4.entity=new entity
No you don't need to do new entity all the time. Types are like a list
Item 1
Item 2
Item 3
Item 4
You only use New when you want to add to that list, I could say
e1.entity = First entity e2.entity = Last entity
without using new as e1 and e2 are kind of pointers to items on the list.