Updated the examples code