In energetics, the reaction is the system and everything else is the surroundings. Exothermic reactions transfer heat to the surroundings, while endothermic reactions absorb heat from the surroundings.
Step-by-step lessons on AQA AS Level Chemistry Enthalpy change. Each one builds up to exam-style questions.