/**
 * @author Matthew Foster
 * @date   October 24th 2007
 */

var CapsuleInsertion = Class.create();
		
Object.extend(Object.extend(CapsuleInsertion.prototype, CapsuleIteration.prototype),
				{
					
					insert : function(obj){
					
						this.dataset.unshift(obj);
					
					},
					pop : function(){
						
						return this.dataset.pop();
					
					},
					shift : function(){
						
						return this.dataset.shift();
					
					}
					


				}
			);