Decoupling and simplifying library usage (i.e demo_hook.c)