Adds examples for Globals related utility functions;

Signed-off-by: Ashwin Hegde <ashwin.hegde3@gmail.com>