Changed the variable scope example to something that works