further clarified where to insert and pull out items from a stack