update example with more documentation