Fixes #4724: fixed example in "Creating your own rule classes"