add `judge!`

This closes #5