Altered code to use more general Seq than list.
More tinkering and learning with the GUI.