function pointers. working example.