example 5 updated