update example 6