add notes for higher order functions