Rewrote buffer to inherit from simpleBuffer