Updates to custom hook cookbook