scope example with multiple values and functions