adding hooks to the example module