ch2-BufferBasics-2.16examplefill and drain buffer