Refactor get buffers list example