Update an example from 1.3 to 2.x