How do different parts of the body interact to maintain homeostasis?