First page
Back
Continue
Last page
Graphics
Programming wise then we can apply the same logic as the last step of recursion as we back out of the tree.