update example that is a bit more involved