updated example to be more thorough