added buffer example