Every room used for sleeping purposes shall have a floor area of at least 40 square feet for each person accommodated therein. The height of the walls must not be less than 8 feet.