add buffer type
add more examples