updated example with an update and a prefab