Updated the examples according to the latest changes