Simple example using pointers