Initial commit from mantis ticket 0000779, i.e. https://foo.cs.ucsb.edu/cs56/issues/0000779