adding ring buffer class