A rigid vessel of volume 1 m^3 contains steam at 20 bar and 400 degrees. The vessel is cooled until the steam is just dry saturated. Calculate the mass of steam in the vessel, the final pressure of the steam, and the heat rejected during the process.