added context-dependent validation example