Added sample code for scope-chain and closures.