update example 5-18

update example 5-18