Validtion classes, delegates, and example