The county adopted an ordinance that prohibited washing and ironing clothes in a public laundry between the hours of ten o'clock at night and six o'clock the following morning. The ordinance also required public laundries to obtain fire and health certificates. P was convicted for washing and ironing clothes in a public laundry between ten o'clock in the evening and six o'clock in the morning. P claimed that the ordinance violated the Fourteenth Amendment because it discriminated between laundry laborers and other laborers, it deprived him of the right to labor and thus deprived him of property, and that the ordinance was unreasonable and was not a proper exercise of police power. P filed a writ of habeas corpus which was denied. P appealed.