Generalized the buffer class a bit.  Added relay and demonstrated.