The code of social respectability confined upper class and bourgeois women to their homes. They were considered socially and economically inferior to their husbands. The unmarried women were ridiculed, and the ones who wanted to avoid social descent could work as unpaid housekeepers living with relatives; the most able could work as governesses or they could become nuns.[13]