update the example to use observ