Finished implementation of first buffer class.