Added the working example update logic