the court held that the questioned statute was a valid exercise of the police power and declared in part as follows : to justify the state in thus interposing its authority in behalf of the public , it must appear , first , that the interests of the public generally , as distinguished from those of a particular class , require such interference ; and second , that the means are reasonably necessary for the accomplishment of the purpose , and not unduly oppressive upon individuals .