First draft of functions2 chapter