update the example in the library