We will heat a volatile liquid to evaporate it so that its vapor just fills a flask whose volume we can measure; we will also know the temperature and pressure of the vapor, and the mass of the vapor. With those data and the pressure measured using a barometer, we can calculate the molar mass of the liquid.