Adding to buffer class