Update functional code example