finish ex7 of chap9 by add ip display
finish ex8, 9 of chap9