fix a bug in problem 4; and continue do problem 5-9.