A piston cylinder device initially contains 0.15-kg steam at 3.5 MPa, superheated by 5 C. Now the steam loses heat to the surroundings and the piston moves down, hitting a set of stops at which point the cylinder contains saturated liquid water. the cooling continues until the cylinder contains water at 200 C. Determine (a) the final pressure and the quality (if mixture), (b) the boundary work, (c) the amount of heat transfer when the piston first hits the stops, and (d) the total heat transfer.