added 2 basic functions

f3() takes a global variable and f4() takes a global and a local
variable