added example with message on the global scope