Add exercise 3 of ch13.