Better input validation
Examples