Example of callback programming