What is hook in programming