exercise 4 in LCTHW