fundamental function practice

scope of variables
global variables using