Not my idea. I copied that straight from another example :-P

But removing that function might be better for the example.
`fail()` would normally include sth. that isn't done by just one command, but that is out of scope for the example.