var Class = {
  create: function() {
    return function() {
      this.initialize.apply(this, arguments);
    }
  }
}var test = Class.create();
test.prototype = {
initialize:function(a1,a2){
var ars1 = a1;
var ars2 = a2;
var a = Class.create();
a.prototype = {
initialize:function(a){this.text = a;},
show:function(){alert(this.text);}
};
this.a1 = new a(ars1);
this.a2 = new a(ars2);
},
add:function(){alert(this.a1.text + this.a2.text);}
}
var test = new test(1,2);
test.a1.show();
test.a2.show();
test.add();