As you transfer heat into the frictionless piston-cylinder system, the mass M rises. The thermal energy transferred into the system equals the change in

A. internal energy of the system
B. internal energy of the system plus the mass's gravitational potential energy
C. internal energy of the system minus the mass's gravitational potential energy
D. the mass's gravitational potential energy minus internal energy of the system
E. Need more information.