example of array of function pointers usage