Code example for Validator

Methods: validate