update observe and set example

[#70413506]