Adding ring buffer sample