Build and use the stack in the right way