Use of tables to store order of execution of functions