Fixed final example crashing