added ex1-10 answer.