add pointer example code