How do you replace thermostat on 1998 BMW 528i?

Drain the water from the cooling system. Remove the water supply hose. Remove the thermostat housing retaining bolts. Remove the thermostat. Reverse the process to install the new thermostat.