Nested Scope Assignment

Pay attention to scope when using the same variable name inside functions.