Circular Buffer exercise, remove temp variable in Clock exercise

Using asserts for error handling