adds buffer class