added ex1-7 answer.