updating examples code.