Exercise 4 by an alternate path