add textbook exercise 6.4 6.5