I replaced a leaking water heater and installed an expansion tank to protect the water heater against thermal expansion.