added new buffer class