update example 3-12

update example 3-12