After staying up all night to study for a math exam, you return to your dorm room after the test and sleep for seven hours. Your sleeping behavior was regulated by the body's tendency to maintain
a) REM sleep
b) Circadian rhythm
c) Deep sleep
d) Sleep homeostasis