correct typos
add pointer sample