A steam engine receives 300 kJ of heat from its environment and does 400 kJ of work. How much does the energy of the steam engine change?