function multisubst: Chap 03 p.59 Line 1