Update fn example