function subst2: Chap 03 p.53 Line 4