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