OK, I will update the example later. The idea is to append lines to an array to show that `buf` is not persistent, then write the array to `stdout`.