Use function pointers