added ex2-10 answer.