Removing global scope variables from examples