added a buffer_size + flush example