(a) A person commits the crime of indecent exposure if, with intent to arouse or gratify sexual desire of himself or herself, or of any person other than his or her spouse, he or she exposes his or her genitals under circumstances in which he or she knows the conduct is likely to cause affront or alarm.
(b) Indecent exposure is a Class A misdemeanor except a third or subsequent conviction shall be a Class C felony.