write a piece of code that does some simple validity checks. for example: min should be less than or equal to max