demo for dynamic scoping and lexical scoping