example of global vs local scope