bug fix example 4-16

fix bug ex 4-16