referee tests
initial code
explanation