Test program to show the difference of reference, pointer and copy