Added an example to show nested scopes

Shows how nesting scopes allows for isolation of state and behaviour