modified exercise 20 to suppress extra lines