A piston-cylinder assembly contains 5 kg of a two-phase liquid-vapor mixture of water having 32% quality is initially at a pressure of 4 bar. The water is heated to 160°C at constant volume and is then expanded isothermally to saturated vapor. Determine the total heat transfer for the process, in kJ.