Code example for Stack

0
	} 
	 
	protected class Relations { 
		public Stack<Model> models = new Stack<Model>();
		public Stack<Material> materials = new Stack<Material>();
		public Stack<Texture> textures = new Stack<Texture>();
		 
		public Texture addTexture(String name, String type) {
			Texture texture = new Texture(name, type);
			textures.add(texture);
			return texture;
		} 
		 
		protected class Texture { 
			public String type;
			public Integer version;
			public String textureName;
			 
			public Texture(String name, String type) {
				this.textureName = name;
				this.type = type;