Callback functions

Simply speaking, a callback function is a function to be called inside another function.
The reason to use it is a program doesn’t have to wait for the results from other part of the program.
When results needed fro the computations is ready, the current function is flagged and process the result.