privatize the class Buffer, which is only used internally anyways.