You can use a stack when you need to remember something and only ever need the last thing.