Which part of the brain is responsible for homeostasis (regulating body temperature)?
A) cerebral cortex
B) basal ganglia
C) thalamus
D) hypothalamus