Class in array with in a class

I am trying to figure out the class seem not working out some reason. I building a class and added array to it. once the array is setup I tried to add class in the the array. It didn’t work when i try it to trace the array class part.


model.as
public class model {
			public var box:Array = new Array();
			public function model() {
				
			}
		}
		
boxcollision.as
public class boxcollision {
			public var x:Number = 0;
			public var y:Number = 0;
			public var z:Number = 0;

			public function boxcollision() {
				
			}
		}
		
test area
		var testmodel:model = new model();
		var box:boxcollision = new boxcollision();
		testmodel.box.push(box)