simple example of function pointer