simplified buffer class