Example of how to use pointers with functions