public void setObject(Primitive myobject, int pos)
 {
     this.objects[pos] = myobject; ;
 }
 public void addObject(Primitive myobject)
 {
     this.objects.Add(myobject);
 }