This is an updated version of Circular Buffer Homework