1. add a buffer  class