no thread safety in the class BoundedBuffer, but the the methods and fields should be implemented