Adds the Stage example from the reference manual.