update example 3-7

update example 3-7