Adding Updated Code of Basic Pointer