added pop(). all methods tested.