a basic idea of a Validator class