Added John's examples on use of function pointers