Explain how to use contrib hooks