Adding ring-buffer.c