adding sample code for function pointers