ex18 pointers to functions