Fixed incorrect scope example code