fix exercise 2.29 (e)

fix exercise 2.29 (e)
p2 hasn't initialized yet.