Added pointer function example