update example 5-7

update example 5-7