The brain is divided into three main sections: the forebrain, the midbrain, and the hindbrain. The forebrain is the largest part of the brain and consists of the limbic system, which manages emotions and memory. The hypothalamus maintains homeostasis by regulating body temperature, hunger, thirst, and hormonal interactions. Also within the forebrain, the thalamus sorts incoming sensory data, directing it for further processing, while the basal ganglia coordinate voluntary movements. Moreover, the cerebral cortex is responsible for higher cognitive functions such as consciousness, reasoning, and memory. The midbrain connects the forebrain and hindbrain, playing a vital role in processing sensory information and transmitting nerve signals. The reticular formation, centered in the midbrain, affects alertness and the sleep-wake cycle. Notably, the substantia nigra and ventral tegmental areas contain cell bodies that produce the neurotransmitter dopamine. The hindbrain, located at the back of the head, primarily includes the medulla, which regulates essential functions such as the heartbeat and respiration. Additionally, the pons aids in brain communication and sleep regulation, while the cerebellum is responsible for coordinating movement and balance.