update examples/simple to follow the API change in 9c41b44