add pointer demo