Work required for compression of a gas contained in a cylinder is 7000 kJ. During compression, heat interaction of 3000 kJ causes the surroundings to be heated. Internal energy change of the gas during the compression is __________ kJ.

A. +4000

B. -4000

C. 10000

D. -10000

Please do not use chat terms. Example: avoid using "grt" instead of "great".