Modified pointers example
Added test program for examples