add buffer example