added hook examples to demo