Influence of professional preparation and class structure on HIV, STD, and pregnancy prevention education