example9 minor stylistic change, exit non-zero on fail