updating the implementation of the example to match the new intention release