update the lifecycle example