add example with global variable.
add example using static variables.
add stack example to understand stack frames with gdb.