A gas expands when 815 J of energy is added to it by heat. The expanding gas does 691 J of work on its surroundings. What is the overall change in the internal energy of the gas?