Add the RingBuffer class