added extra examples to illustrate extra condition, and using the instance to determine the logged in user