It is a defense to prosecution under this chapter that a person appearing in a state of nudity did so in a modeling class operated by:
1. A proprietary school licensed by the State of Iowa or a college, junior college or university supported entirely or partly by taxation; or
2. A private college or university that maintains and operates educational programs in which credits are transferable to a college, junior college, or university supported entirely or partly by taxation.