Add an example of using the validator class