Utilities for the cogneuro class.  We will probably use in others, too.
I had inserted the answer by mistake.  I removed it.