finished code example in section 6, chapter10, TryChannel.java
finished code for the first example in section 7, chapter10, BufferStateTrace.java