add buffer class