Imlementing a proper Stack object.