Exercise about scope, local variable and global variable. The comments on the code explain all this concepts.