Sandwich code done

Although I don't think that all of that was necessary.  With collect,
couldn't you logically write all of that code functionally?