reviewed 04-functions.tex for publication