two body systems that work together to maintain homeostasis