writing textbook exercise 5.2