165 ( maine , 1900 ) , a law prohibiting aliens to engage as hawkers and peddlers was declared void , because the discrimination bore no reasonable and just relation to the act in respect to which the classification was proposed .