Class ImprovedStackImpl implemented