solve ch04/ex2